﻿/*CREATE TRIGGER [dbo].[Cancelaciones_DeletionTrigger] 
    ON [Cancelaciones] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Cancelaciones_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[CancelacionGuid] = [Cancelaciones_Tombstone].[CancelacionGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Cancelaciones_Tombstone] 
    ([CancelacionGuid], DeletionDate)
    SELECT [CancelacionGuid], GETUTCDATE()
    FROM deleted 
END*/